package rdfareaderget;

import java.io.InputStream;

import rdfdistiller.RDFDistiller;

import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String url = "http://www.food.com/recipe/broccoli-salad-256522";

		try {

			InputStream resultsStream = RDFaReaderGET.extractRDFaUsingGET(url,
					"HTML");
			Model rdfGraph = ModelFactory.createDefaultModel();
			rdfGraph.read(resultsStream, null);

			rdfGraph.write(System.out, "TURTLE");

		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
